#include <stdio.h>

size_t my_strlen (char* p)
{

    size_t number = 0 ;

    while ((*p) != '\0')
    {

        number++ ;

        p++ ;

    }

    return number ;

}

int main ()
{

    char s [100] ;

    gets (s) ;

    size_t num = my_strlen (s) ;

    printf ("%zd" , num) ;

    return 0 ;

}